<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>menu</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="/js/jquery-3.4.1/jquery-3.4.1.min.js"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="/js/bootstrap.bundle.js"></script>
    <script src="/js/transmitdata.js"></script>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .directory-container {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            width: 300px;
        }

        .directory-item {
            padding: 15px;
            border-bottom: 1px solid #eee;
            text-align: center;
            transition: background-color 0.3s ease;
            cursor: pointer;
        }

        .directory-item:last-child {
            border-bottom: none;
        }

        .directory-item:hover {
            background-color: #f0f0f0;
        }
    </style>
</head>
<body>
    <div class="directory-container">
        <div class="directory-item" onclick="showFunction()">基本信息</div>
        <div class="directory-item" onclick="showAllocateBlock()">物理块分配情况</div>
        <div class="directory-item" onclick="showAllocateInode()">inode节点分配情况</div>
        <div class="directory-item" onclick="showAllocateRootStack()">成组链接情况</div>
        <div class="directory-item" onclick="showFileSystem()">文件管理</div>
        <div class="directory-item" onclick="initFileSystem()">系统初始化</div>
    </div>
   <script>
    function showFunction()
    {
        console.log("ksjfhdjk");
        formSubmit('get','/menu/showFoundation',null);
        // transmitData('get','/menu/showFoundation',null);
    }
    function showFileSystem()
    {
        formSubmit('get','/showFileSystem',null);
    }
    function showAllocateInode()
    {
        formSubmit('get','/menu/showAllocateInode',null);
    }
    function showAllocateRootStack()
    {
        formSubmit('get','/menu/showAllocateRootStack',null);
    }
    function showAllocateBlock()
    {
        formSubmit('get','/menu/showAllocateBlock',null);
    }
    function initFileSystem()
    {
        formSubmit('get','/menu/init',null);
    }
    
    //  transmitData("post", "/getData", null).then(result => {
    //     console.log("从服务器那端获取的 JSON 数据:", jsonParse( result));
    // });
   </script> 
</body>
</html>